package pl.druminski.robinhood.updater.controller;

import java.util.TimerTask;
import pl.druminski.robinhood.updater.model.Data;
import pl.druminski.robinhood.updater.view.Gui;

/**
 * @author Łukasz Drumiński
 * 
 */
public class ShowProgress extends TimerTask
{
    private Data data;
    private Gui gui;

    public ShowProgress(Data data, Gui gui)
    {
        this.data = data;
        this.gui = gui;
    }

    @Override
    public void run()
    {
        gui.progressBig.setValue(data.getAvailable());
        gui.progressSmall.setValue(data.getLocalAvailable());
    }


}
